package com.androideasy.permissions

import android.Manifest

class Permission {

    companion object{
        val MANAGE_EXTERNAL_STORAGE = "android.permission.MANAGE_EXTERNAL_STORAGE"

        val REQUEST_INSTALL_PACKAGES = "android.permission.REQUEST_INSTALL_PACKAGES"

        val SYSTEM_ALERT_WINDOW = "android.permission.SYSTEM_ALERT_WINDOW"


        val WRITE_SETTINGS = "android.permission.WRITE_SETTINGS"


        val NOTIFICATION_SERVICE = "android.permission.NOTIFICATION_SERVICE"


        val PACKAGE_USAGE_STATS = "android.permission.PACKAGE_USAGE_STATS"

        val READ_EXTERNAL_STORAGE = "android.permission.READ_EXTERNAL_STORAGE"


        val WRITE_EXTERNAL_STORAGE = "android.permission.WRITE_EXTERNAL_STORAGE"


        val CAMERA = "android.permission.CAMERA"


        val RECORD_AUDIO = "android.permission.RECORD_AUDIO"

        val ACCESS_FINE_LOCATION = "android.permission.ACCESS_FINE_LOCATION"

        val ACCESS_COARSE_LOCATION = "android.permission.ACCESS_COARSE_LOCATION"


        val ACCESS_BACKGROUND_LOCATION = "android.permission.ACCESS_BACKGROUND_LOCATION"

        val BLUETOOTH_SCAN = "android.permission.BLUETOOTH_SCAN"


        val BLUETOOTH_CONNECT = "android.permission.BLUETOOTH_CONNECT"


        val BLUETOOTH_ADVERTISE = "android.permission.BLUETOOTH_ADVERTISE"


        val READ_CONTACTS = "android.permission.READ_CONTACTS"


        val WRITE_CONTACTS = "android.permission.WRITE_CONTACTS"


        val GET_ACCOUNTS = "android.permission.GET_ACCOUNTS"


        val READ_CALENDAR = "android.permission.READ_CALENDAR"


        val WRITE_CALENDAR = "android.permission.WRITE_CALENDAR"


        val ACCESS_MEDIA_LOCATION = "android.permission.ACCESS_MEDIA_LOCATION"

        val READ_PHONE_STATE = "android.permission.READ_PHONE_STATE"

        val CALL_PHONE = "android.permission.CALL_PHONE"

        val READ_CALL_LOG = "android.permission.READ_CALL_LOG"

        val WRITE_CALL_LOG = "android.permission.WRITE_CALL_LOG"

        val ADD_VOICEMAIL = "com.android.voicemail.permission.ADD_VOICEMAIL"

        val USE_SIP = "android.permission.USE_SIP"


        val ANSWER_PHONE_CALLS = "android.permission.ANSWER_PHONE_CALLS"


        val READ_PHONE_NUMBERS = "android.permission.READ_PHONE_NUMBERS"

        val BODY_SENSORS = "android.permission.BODY_SENSORS"


        val ACTIVITY_RECOGNITION = "android.permission.ACTIVITY_RECOGNITION"


        val SEND_SMS = "android.permission.SEND_SMS"

        val RECEIVE_SMS = "android.permission.RECEIVE_SMS"

        val READ_SMS = "android.permission.READ_SMS"


        val RECEIVE_WAP_PUSH = "android.permission.RECEIVE_WAP_PUSH"

        val RECEIVE_MMS = "android.permission.RECEIVE_MMS"

        val ACCEPT_HANDOVER = "android.permission.ACCEPT_HANDOVER"

          val PROCESS_OUTGOING_CALLS = "android.permission.PROCESS_OUTGOING_CALLS"

    }


    object Group {
        /** 存储  */
        val STORAGE = arrayOf<String>(
            Permission.READ_EXTERNAL_STORAGE,
            Permission.WRITE_EXTERNAL_STORAGE
        )

        /** 日历   */
        val CALENDAR = arrayOf<String>(
            Permission.READ_CALENDAR,
            Permission.WRITE_CALENDAR
        )

        /** 联系人   */
        val CONTACTS = arrayOf<String>(
            Permission.READ_CONTACTS,
            Permission.WRITE_CONTACTS,
            Permission.GET_ACCOUNTS
        )

        /** 传感器   */
        val SENSORS = arrayOf<String>(
            Permission.BODY_SENSORS,
            Permission.ACTIVITY_RECOGNITION
        )

        /** 蓝牙  */
        val BLUETOOTH = arrayOf<String>(
            Permission.BLUETOOTH_SCAN,
            Permission.BLUETOOTH_CONNECT,
            Permission.BLUETOOTH_ADVERTISE
        )
    }
}